<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#    在模板中使用变量 四个大括号 {{ person.2 }}#}
{#    {% if age < 18 %}#}
{#        <p>您是未成年人,不能上车</p>#}
{##}
{#        {% elif age == 18 %}#}
{#        <p>您是成年人,可以上车</p>#}
{#        {% else %}#}
{#        <p>樯橹灰飞烟灭</p>#}
{#    {% endif %}#}
{##}
{#      {% if '91wangfan' in heros %}#}
{#        <p><a href="http://www.91.com">wanfan的种子</a></p>#}
{#        {% else %}#}
{#        <p>  欠91wangfan一个vip 奥斯卡欠他一个最佳男主角</p>#}
{#    {% endif %}#}

{#<table>#}
{#    <thead>#}
{#        <tr>#}
{#            <th>序号</th>#}
{#            <th>书名</th>#}
{#            <th>作者</th>#}
{#            <th>价格</th>#}
{#        </tr>#}
{##}
{#    </thead>#}
{#    <tbody>#}
{#        {% for book in books %}#}
{#            {% if forloop.first %}#}
{#                <tr style="background: red">#}
{#                {% elif forloop.last %}#}
{#                <tr style="background: green">#}
{#                {% else %}#}
{#                <tr>#}
{#            {% endif %}#}
{#                <td>{{ forloop.counter }}</td>#}
{#                <td>{{ book.name }}</td>#}
{#                <td>{{ book.author }}</td>#}
{#                <td>{{ book.price}}</td>#}
{#            </tr>#}
{#        {% endfor %}#}
{##}
{#    </tbody>#}
{#</table>#}
{#<ul>#}
{#    {% for key,value in person.items  %}#}
{#        <li>{{ key }}/{{ value }}</li>#}
{#    {% endfor %}#}
{##}
{#</ul>#}
{##}
{#    <ul>#}
{#        {% for comment in comments %}#}
{#            <li>{{ comment }}</li>#}
{#            {% empty %}#}
{#            <li>这个人有点懒，什么都没留下</li>#}
{##}
{#        {% endfor %}#}
{##}
{#    </ul>#}

{% with  91w=person.2 %}
    <p>{{ 91w }}</p>
    <p>{{ 91w }}</p>
{% endwith %}
{#    <p>{{ 91w }}</p>#}
{% with person.0 as 91w %}
    <p>{{ 91w }}</p>
{% endwith %}
</body>
</html>